import { segment } from 'oicq'
import { IPlugin } from '../bot/bot'

const onlineReminer: IPlugin = {
    name: '上线提醒',
    onMount(bot) {
        bot.client.on('system.online', () => {
            bot.sendMsg('private', bot.adminQQ, [segment.face(66), `${bot.client.nickname}上线啦！`, segment.face(66)])
        })
    },
}

export default onlineReminer
